import request from '@/utils/request'

export function assign(id, data) {
  return request({
    url: '/rbac/assignment/assign',
    method: 'post',
    params: {
      id: id
    },
    data: data
  })
}

export function revoke(id, data) {
  return request({
    url: '/rbac/assignment/revoke',
    method: 'post',
    params: {
      id: id
    },
    data: data
  })
}
